package dk.viauc.cmclang.intlang.ast;

public class IfStatement extends Statement {
	public Expression exp;
	public StatementList doPart;
	public StatementList elsePart;

	public IfStatement(Expression exp, StatementList doPart, StatementList elsePart) {
		this.exp = exp;
		this.doPart = doPart;
		this.elsePart = elsePart;
	}
	
	public Object visit( Visitor v, Object arg )
	{
		return v.visitIfStatement( this, arg );
	}
}
